<!--
*
*我的收藏 -医生列表
*
 -->
<template>
  <div class="shi">
    <nav-bar
      navBarClass="nav-bar-white"
      leftIcon="arrow-left"
      rightIcon="ellipsis"
      :titleCenter="titleCenter"
      titleLeft=""
      titleRight=""
    ></nav-bar>
    <con-com> </con-com>
  </div>
</template>
<script>
import navBar from "@c/navBar";
import conCom from "./components/index";
export default {
  name: "cj_problem",
  data() {
    return {
      titleCenter: "常用就诊人",
      name: "",
      type: ""
    };
  },
  components: {
    navBar,
    conCom
  },
  created() {
    //  this.type=this.$route.query.type
    this.type = JSON.parse(localStorage.getItem("choose"));
  },
  methods: {
    handleClickLeft(val) {
      (this.name = JSON.parse(localStorage.getItem("name"))),
        window.console.log(val);
      this.$router.go(-1); //返回上一层
      // if(this.name){
      //   console.log(1111)
      //   this.$router.push({
      //     name:"Appointment_message"
      //   })
      // }else if(this.type){
      //  this.$router.push({
      //     name:"Appointment_message"
      //   })
      // }
      // else{
      //  this.$router.push({
      //   name:"Mine"
      // })
      // }

      // on confirm
    },
    handleClickRight(val) {
      window.console.log(val);
    }
  }
};
</script>
